package com.sheliduan.itlearning.common.model.vos;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author: 断舍离
 * @date: 2025/4/14 19:47
 * @description: 首页返回的课程数据列表
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FindCourseListRspVO {

    private Integer id;

    private String cover;

    private String title;

    private Integer type;

    private String summary;

    //private String contentOrLocation;

    private String username;

    private Double price;

    private Integer categoryId;

    private Integer tagId;

    private Integer status;

    private Integer watchNums;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    // 该文章是否允许被查看
    private Integer isShow;
}
